
#include<iostream>
#include<cmath>
using namespace std;

double area(double r){
	return 3.14*r*r;
}

double length(double r)
{
	return 2*3.14*r;
}

double process(double x, double (*fun)(double)){
	return (*fun)(x);
}


int main() {
	
	double r;
	cin>>r;
	cout<<process(r,area);
	cout<<process(r, length);
		
	return 0;
}
